package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.product.SeckillRecordStatus;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 实体类<br>
 * 对应的表为：pro_seckill_record<br>
 * 
 * @author ljf
 * @date 2019-07-29 14:24:32
 * @company sgy
 * @version 2.0
 */
@TableName("pro_seckill_record")
public class SeckillRecordEntity {

    /**  */
	protected String id;

    /**  */
	protected String seckillId;

    /**  */
	protected String busdId;

    /** 购买的日期 */
	@ApiModelProperty("购买的日期")
	protected LocalDateTime buyTime;

    /** [枚举]状态：0-正常-NORMAL、1-退款-DISABLE */
	@ApiModelProperty("[枚举]状态：0-正常-NORMAL、1-退款-DISABLE")
	protected SeckillRecordStatus status;

    /**  */
	protected String memberId;

    /**  */
	protected String orderNo;

    /**  */
	protected LocalDateTime orderTime;

	/**
	 * 构造一个空实体对象
	 */
	public SeckillRecordEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个实体对象
	 * 
	 * @param other 其它对象
	 */
	public SeckillRecordEntity(SeckillRecordEntity other){
		super();
     	this.id = other.id;
     	this.seckillId = other.seckillId;
     	this.busdId = other.busdId;
     	this.buyTime = other.buyTime;
     	this.status = other.status;
     	this.memberId = other.memberId;
     	this.orderNo = other.orderNo;
     	this.orderTime = other.orderTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 * 
	 * @return seckillId 
	 */
	public String getSeckillId() {
		return seckillId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param seckillId 
	 */
	public void setSeckillId(String seckillId) {
		this.seckillId = seckillId;
	}

	/**
	 * 获取
	 * 
	 * @return busdId 
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param busdId 
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取购买的日期
	 * 
	 * @return buyTime 购买的日期
	 */
	public LocalDateTime getBuyTime() {
		return buyTime;
	}
  	
	/**
	 * 设置购买的日期
	 * 
	 * @param buyTime 购买的日期
	 */
	public void setBuyTime(LocalDateTime buyTime) {
		this.buyTime = buyTime;
	}

	/**
	 * 获取[枚举]状态：0-正常-NORMAL、1-退款-DISABLE
	 * 
	 * @return status [枚举]状态：0-正常-NORMAL、1-退款-DISABLE
	 */
	public SeckillRecordStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]状态：0-正常-NORMAL、1-退款-DISABLE
	 * 
	 * @param status [枚举]状态：0-正常-NORMAL、1-退款-DISABLE
	 */
	public void setStatus(SeckillRecordStatus status) {
		this.status = status;
	}

	/**
	 * 获取
	 * 
	 * @return memberId 
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param memberId 
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * 
	 * @return orderNo 
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置
	 * 
	 * @param orderNo 
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取
	 * 
	 * @return orderTime 
	 */
	public LocalDateTime getOrderTime() {
		return orderTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param orderTime 
	 */
	public void setOrderTime(LocalDateTime orderTime) {
		this.orderTime = orderTime;
	}

    public String toString() {
		return new StringBuilder().append("SeckillRecordEntity{").
			append("id=").append(id).
			append(",seckillId=").append(seckillId).
			append(",busdId=").append(busdId).
			append(",buyTime=").append(buyTime).
			append(",status=").append(status).
			append(",memberId=").append(memberId).
			append(",orderNo=").append(orderNo).
			append(",orderTime=").append(orderTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public SeckillRecordEntity copy() {
		return new SeckillRecordEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /**  */
	public static final String COL_SECKILL_ID = "seckill_id";

    /**  */
	public static final String COL_BUSD_ID = "busd_id";

    /** 购买的日期 */
	public static final String COL_BUY_TIME = "buy_time";

    /** [枚举]状态：0-正常-NORMAL、1-退款-DISABLE */
	public static final String COL_STATUS = "status";

    /**  */
	public static final String COL_MEMBER_ID = "member_id";

    /**  */
	public static final String COL_ORDER_NO = "order_no";

    /**  */
	public static final String COL_ORDER_TIME = "order_time";
}
